package com.whz.governance.http;

import com.whz.governance.http.client.SentinelFallBackConfiguration;
import com.whz.governance.http.client.SentinelHttpClientConfiguration;
import com.whz.governance.http.client.SentinelRulesSyncConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启用MVC sentinel
 *
 * @author whz
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({
        SentinelFallBackConfiguration.class,
        SentinelHttpClientConfiguration.class,
        SentinelRulesSyncConfiguration.class
})
public @interface EnableMvcSentinel {
}